package sim;

/**
 * An interface that contains the necessary methods to draw and update an object.
 * This works well with object pooling.
 */
public interface Updateable
{
	
	/**
	 * This will call the code that resides in the draw method of the object.
	 * Usually this will display the object on the screen.
	 */
	
	public void draw();
	
	/**
	 * Call this to execute the code located in the objects update method.
	 * 
	 * @param timeStep - The time step that the rest of your game operates by.
	 */
	public void update(float timeStep);
}
